package com.yjt.sousou.detail.entity;

import java.util.List;

/**
 * @author chs
 * date：2019-10-25 15:11
 * des：配件
 */
public class PartsEntity {


    /**
     * number : 2
     * state : Success
     * returncode : 0
     * page : 1
     * count : 20
     * pages : 1
     * sql : SELECT id,proname,fenzu,kufang,type,xinghao,kucun,pjdw,danjia,sb_id,kcyj,mycode FROM product  where 1  and kufang=1 and (proname LIKE  '%%' or mycode  LIKE  '%%')  LIMIT 0 , 20
     * data : [{"id":"1","proname":"鼠标","fenzu":"3","kufang":"1","type":"48","xinghao":"k201","kucun":"13","pjdw":"个","danjia":"10","sb_id":"0","kcyj":"200","mycode":"","have_num":null},{"id":"2","proname":"键盘","fenzu":"3","kufang":"1","type":"48","xinghao":"k1","kucun":"16","pjdw":"个","danjia":"20","sb_id":"0","kcyj":"","mycode":"","have_num":null}]
     */

    private int number;
    private String state;
    private String returncode;
    private String page;
    private int count;
    private int pages;
    private String sql;
    private List<DataEntity> data;

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getReturncode() {
        return returncode;
    }

    public void setReturncode(String returncode) {
        this.returncode = returncode;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public List<DataEntity> getData() {
        return data;
    }

    public void setData(List<DataEntity> data) {
        this.data = data;
    }

    public static class DataEntity {
        /**
         * id : 1
         * proname : 鼠标
         * fenzu : 3
         * kufang : 1
         * type : 48
         * xinghao : k201
         * kucun : 13
         * pjdw : 个
         * danjia : 10
         * sb_id : 0
         * kcyj : 200
         * mycode :
         * have_num : null
         */

        private String id;
        private String proname;
        private String fenzu;
        private String kufang;
        private String type;
        private String xinghao;
        private String kucun;
        private String pjdw;
        private String danjia;
        private String sb_id;
        private String kcyj;
        private String mycode;
        private int have_num;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getProname() {
            return proname;
        }

        public void setProname(String proname) {
            this.proname = proname;
        }

        public String getFenzu() {
            return fenzu;
        }

        public void setFenzu(String fenzu) {
            this.fenzu = fenzu;
        }

        public String getKufang() {
            return kufang;
        }

        public void setKufang(String kufang) {
            this.kufang = kufang;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getXinghao() {
            return xinghao;
        }

        public void setXinghao(String xinghao) {
            this.xinghao = xinghao;
        }

        public String getKucun() {
            return kucun;
        }

        public void setKucun(String kucun) {
            this.kucun = kucun;
        }

        public String getPjdw() {
            return pjdw;
        }

        public void setPjdw(String pjdw) {
            this.pjdw = pjdw;
        }

        public String getDanjia() {
            return danjia;
        }

        public void setDanjia(String danjia) {
            this.danjia = danjia;
        }

        public String getSb_id() {
            return sb_id;
        }

        public void setSb_id(String sb_id) {
            this.sb_id = sb_id;
        }

        public String getKcyj() {
            return kcyj;
        }

        public void setKcyj(String kcyj) {
            this.kcyj = kcyj;
        }

        public String getMycode() {
            return mycode;
        }

        public void setMycode(String mycode) {
            this.mycode = mycode;
        }

        public int getHave_num() {
            return have_num;
        }

        public void setHave_num(int have_num) {
            this.have_num = have_num;
        }
    }
}
